﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FastInsertTableControl
{
    public class FastInsertTableEvents
    {
        //选择完毕
        public delegate void SelectCompleteEventHandler(object sender, SelectCompleteEventArgs e);

        //取消选择
        public delegate void CancelSelectEventHandler(object sender, EventArgs e);

        //鼠标移动
        public delegate void SelectingEventHandler(object sender, SelectingEventArgs e);

        #region 选择完毕事件的参数
        public class SelectCompleteEventArgs : EventArgs
        {
            private int _rows = 0;
            private int _cols = 0;
            public SelectCompleteEventArgs(int rows, int cols)
                : base()
            {
                _rows = rows;
                _cols = cols;
            }
            public int Rows
            {
                get { return _rows; }
            }
            public int Cols
            {
                get { return _cols; }
            }
        }
        #endregion    

        #region 鼠标移动事件的参数
        public class SelectingEventArgs : EventArgs
        {
            private int _rows = 0;
            private int _cols = 0;
            public SelectingEventArgs(int rows, int cols)
                : base()
            {
                _rows = rows;
                _cols = cols;
            }
            public int Rows
            {
                get { return _rows; }
            }
            public int Cols
            {
                get { return _cols; }
            }
        }
        #endregion    
    }
}
